﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">
	<!-- Resource dictionary entries should be defined here. -->
	<Style x:Key="PrintListBoxItemStyle" TargetType="ListBoxItem">
		<Setter Property="Padding" Value="3"/>
		<Setter Property="HorizontalContentAlignment" Value="Left"/>
		<Setter Property="VerticalContentAlignment" Value="Top"/>
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="TabNavigation" Value="Local"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ListBoxItem">
					<StackPanel Background="{TemplateBinding Background}">
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="CommonStates">
								<vsm:VisualState x:Name="Normal"/>
								<vsm:VisualState x:Name="MouseOver">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="fillColor" 
                                                                       Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value="0.9"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="contentPresenter" 
                                                                       Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="SelectionStates">
								<vsm:VisualState x:Name="Unselected"/>
								<vsm:VisualState x:Name="Selected">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="fillColor2" 
                                                                       Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="FocusStates">
								<vsm:VisualState x:Name="Focused"/>
								<vsm:VisualState x:Name="Unfocused"/>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
                        <Grid>
                            
                            <Rectangle x:Name="fillColor" RadiusX="3" RadiusY="3" IsHitTestVisible="False" 
                                       Opacity="1" StrokeThickness="1" Stroke="#FFEED278" >
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                         <GradientStop Color="#FFFFF6D4" Offset="0"/>
                                        <GradientStop Color="#FFF8F4D1" Offset="0.996"/>
                                        <GradientStop Color="#FFF8DF6F" Offset="0.768"/>
                                        <GradientStop Color="#FFF6CE54" Offset="0.333"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="fillColor2" RadiusX="3" RadiusY="3" IsHitTestVisible="False" 
                                       Opacity="0" Stroke="#FFB0A85F" StrokeThickness="1">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <!--<GradientStop Color="#FFFFD3AA"/>
                                        <GradientStop Color="#FFF8D168" Offset="1"/>
                                        <GradientStop Color="#FFF29B59" Offset="0.341"/>
                                        <GradientStop Color="#FFDC8443" Offset="0.366"/>
                                        <GradientStop Color="#FFFDC161" Offset="0.947"/>-->
                                        <GradientStop Color="#FFFFE479" Offset="0.028"/>
                                        <GradientStop Color="#FFFFF38D" Offset="0.996"/>
                                        <GradientStop Color="#FFFADC55" Offset="0.736"/>
                                        <GradientStop Color="#FFF6CE54" Offset="0.581"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            
                            <ContentPresenter x:Name="contentPresenter" 
                                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
                                              Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" 
                                              ContentTemplate="{TemplateBinding ContentTemplate}"/>
                            
                        </Grid>
                        
                        <Path Fill="#FFFFFFFF" Stretch="Uniform" Stroke="#FFC3C3C3" Height="1" Margin="6,5,6,5" 
                              UseLayoutRounding="False" Data="M0,30 L587,30" Width="325"
                              StrokeDashOffset="39" StrokeDashArray="2 2" HorizontalAlignment="Center"/>
                        
					</StackPanel>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
    
    <!-- BUTTON TEMPLATE -->
	<Style x:Key="PrintButtonTemplate" TargetType="Button">
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid Background="#00FFFFFF" Cursor="Hand">
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="CommonStates">
								<vsm:VisualStateGroup.Transitions>
									<vsm:VisualTransition GeneratedDuration="00:00:00.1500000" To="Pressed"/>
									<vsm:VisualTransition From="Pressed" GeneratedDuration="00:00:00.3500000"/>
									<vsm:VisualTransition From="MouseOver" GeneratedDuration="00:00:00.1500000" To="Normal"/>
								</vsm:VisualStateGroup.Transitions>
								<vsm:VisualState x:Name="Normal"/>
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="fillColor" 
                                                                       Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.9"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="fillColor2" 
                                                                       Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
								<vsm:VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="FocusStates">
								<vsm:VisualState x:Name="Focused">
									<!--<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" 
                                                                       Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>-->
								</vsm:VisualState>
								<vsm:VisualState x:Name="Unfocused"/>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>

                        <Rectangle x:Name="fillColor" RadiusX="3" RadiusY="3" IsHitTestVisible="False" 
                                       Opacity="0" StrokeThickness="1" Stroke="#FFEED278" >
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<!-- HOVER -->
                                    <GradientStop Color="#FFFFF6D4" Offset="0"/>
                                    <GradientStop Color="#FFF8F4D1" Offset="0.996"/>
                                    <GradientStop Color="#FFF8DF6F" Offset="0.768"/>
                                    <GradientStop Color="#FFF6CE54" Offset="0.333"/>
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>
                        <Rectangle x:Name="fillColor2" RadiusX="3" RadiusY="3" IsHitTestVisible="False" 
                                       Opacity="0" Stroke="#FFB0A85F" StrokeThickness="1">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <!--<GradientStop Color="#FFFFD3AA"/>
                                        <GradientStop Color="#FFF8D168" Offset="1"/>
                                        <GradientStop Color="#FFF29B59" Offset="0.341"/>
                                        <GradientStop Color="#FFDC8443" Offset="0.366"/>
                                        <GradientStop Color="#FFFDC161" Offset="0.947"/>-->
									<!-- PRESSED -->
                                    <GradientStop Color="#FFFFE479" Offset="0.028"/>
                                    <GradientStop Color="#FFFFF38D" Offset="0.996"/>
                                    <GradientStop Color="#FFFADC55" Offset="0.736"/>
                                    <GradientStop Color="#FFF6CE54" Offset="0.581"/>
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>

                        <ContentPresenter x:Name="contentPresenter" 
                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
                              Margin="{TemplateBinding Padding}" 
                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}" 
                              Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
						<Rectangle x:Name="DisabledVisualElement" Fill="#FFFFFFFF" RadiusX="3" RadiusY="3" 
                            IsHitTestVisible="false" Opacity="0"/>
						<!--<Rectangle x:Name="FocusVisualElement" Stroke="#FF6DBDD1" StrokeThickness="1" RadiusX="2" 
                                RadiusY="2" Margin="1" IsHitTestVisible="false" Opacity="0"/>-->
                        
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>